<me:UIWS x:Class="WPFExcelReport.TWS15"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                 xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT" 
                 xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                   x:Name="TV"
          Loaded="Window_Loaded" 
      >
    <me:UIWS.Resources>
        <CollectionViewSource  x:Key="vwMaster"  />
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:BoolToJNConverter x:Key="bjn"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIWS.Resources>
    <StackPanel >
        <WrapPanel Margin="0,0,0,0">
            <Button  Click="EditCommand" Width="24" Height="20" IsEnabled="{Binding IsCanChg,ElementName=TV}"
                     Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}">
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Edit.png" />
                </Button.Background>
            </Button>
            <Button   Click="SaveCommand" Height="20" Margin="5,0,0,0" Width="24" 
                      Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}">
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Save.png" />
                </Button.Background>
            </Button> 
            <SD:K0457 Margin="10,0,0,0"
                          INFO="材质"
                           KEY="{Binding WASUBSTGR,ElementName=TV}" 
                          IsEdit="{Binding IsEdit,ElementName=TV}"  />
            <TextBlock    Text="{Binding WASUBSTGR}" MinWidth="40" Width="Auto" Visibility="{Binding IsEdit,Converter={StaticResource nbv}}" /> 
            <SD:K0665 Margin="10,0,0,0"
                          INFO="克重"
                      KEY="{Binding WAHANDICAP,ElementName=TV}" 
                          IsEdit="{Binding IsEdit,ElementName=TV}"  />
            <TextBlock    Text="{Binding WAHANDICAP}" MinWidth="40" Width="Auto" Visibility="{Binding IsEdit,Converter={StaticResource nbv}}" /> 
            <SD:K0453 Margin="10,0,0,0"
                      KEY="{Binding WAVORBWA,ElementName=TV}" 
                          INFO="经密"
                          IsEdit="{Binding IsEdit,ElementName=TV}"  /> 
            <TextBlock    Text="{Binding WAVORBWA}" MinWidth="40" Width="Auto" 
                          Visibility="{Binding IsEdit,Converter={StaticResource nbv}}" /> 
            <SD:K0455 Margin="10,0,0,0"
                      KEY="{Binding WAVORBFB,ElementName=TV}" 
                          INFO="长短纤维"
                          IsEdit="{Binding IsEdit,ElementName=TV}"  /> 
            <TextBlock    Text="{Binding WAVORBFB}" MinWidth="40" Width="Auto" Visibility="{Binding IsEdit,Converter={StaticResource nbv}}" />
            <SD:K0450 Margin="10,0,0,0"
                      KEY="{Binding WANACHBDR,ElementName=TV}" 
                          INFO="组织"
                          IsEdit="{Binding IsEdit,ElementName=TV}"  />
            <TextBlock    Text="{Binding WANACHBDR}" MinWidth="40" Width="Auto" Visibility="{Binding IsEdit,Converter={StaticResource nbv}}" />  
            <SD:K0458 Margin="10,0,0,0"
                      KEY="{Binding WAVORBAP,ElementName=TV}" 
                          INFO="上浆类型"
                          IsEdit="{Binding IsEdit,ElementName=TV}"  />
            <TextBlock    Text="{Binding WAVORBAP}" MinWidth="40" Width="Auto" Visibility="{Binding IsEdit,Converter={StaticResource nbv}}" />
            <SD:K0674 Margin="10,0,0,0"
                      KEY="{Binding WAMVB,ElementName=TV}" 
                      INFO="经向紧度"
                      IsEdit="{Binding IsEdit,ElementName=TV}"  />
            <TextBlock    Text="{Binding WAMVB}" MinWidth="40" Width="Auto" Visibility="{Binding IsEdit,Converter={StaticResource nbv}}" />
            <CheckBox Content="纱线染色"  Visibility="Collapsed"
                      IsEnabled="{Binding IsEdit,ElementName=TV}"
                      IsChecked="{Binding IsColorWeave,ElementName=TV}"/>

        </WrapPanel>
    </StackPanel> 
</me:UIWS>
